package org.fanximall.erp.product.infrastructure.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author      :  william
 * @version     :  V1.0  created in 2024/4/23
 */
@Getter
@Setter
@ToString
@TableName(value = "product_conf_dict")
public class ProductConfDictDO implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "`name`")
    private String name;

    @TableField(value = "code")
    private String code;

    @TableField(value = "parent_code")
    private String parentCode;

    /**
     * 1 待生效 2 生效 3 失效
     */
    @TableField(value = "`state`")
    private Boolean state;

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}